namespace ColladaDotNet.OpenTKMapping
{
	public class EffectInstance : DocumentLibraryElement<instance_effect>
	{
		public void Bind()
		{
			if (!string.IsNullOrEmpty(Collada.url))
			{
				var e = Document.GetElementByUrl<Effect>(Collada.url);
				e.Bind();
			}
		}

		public void Unbind()
		{
			if (!string.IsNullOrEmpty(Collada.url))
			{
				var e = Document.GetElementByUrl<Effect>(Collada.url);
				e.Unbind();
			}
		}
	}
}